#!/bin/bash
#
# You need an icecast server to talk to to test this thing
# 
# Simple test script to launch everything needed to run the test
# namely start up a few items on a icecast server
#

gst-launch-0.10 filesrc location=/home/quandt/Desktop/devel/pytests/test1.ogg ! shout2send ip=localhost port=8000 password=hackme mount=p1.ogg &
pid1=$!

gst-launch-0.10 filesrc location=/home/quandt/Desktop/devel/pytests/test2.ogg ! shout2send ip=localhost port=8000 password=hackme mount=p2.ogg &
pid2=$!


(sleep 2; kill $pid1)&

echo 
echo "---------------START TEST------------------"

#GST_DEBUG=3,python:3,gnl*:3  python s14.py
python s14.py

echo 
echo "---------------END TEST--------------------"
kill $pid2
